/********************************************************
 Name          : cmx7164_api.c
 Author        : Khachatur Gyozalyan
 Copyright     : Copyright by Antel Systems
 Description   :
 **********************************************************/
// Include Files
#include "cmx7164_api.h"
#include "cmx7164.h"
#include "tc_1.h"
#include "clocks.h"

unsigned char UsageBlockType = 1;

unsigned int GetBlocSize(unsigned char modulation)
{
	switch(modulation)
	{
		case 1:
		case 2:
		case 3:
			return BlockSize_QAM[UsageBlockType];
			break;
		case 4:
			return ROW_DATA_FRAME_SIZE;
			break;
		case 5:
			return BlockSize_4FSK[UsageBlockType];
			break;
		case 6:
			return BlockSize_GMSK[UsageBlockType];
			break;
	}
	return BlockSize_QAM[UsageBlockType];
}

unsigned int GetBlocType(void)
{
	return UsageBlockType;
}

unsigned int GetModulationType(void)
{
	return 2;
}

unsigned int GetTimeslotLength(void)
{
	return 32;
}

